import 'package:animal/constant/font.dart';
import 'package:animal/utils/screen_util.dart';
import 'package:flutter/material.dart';

///如商家证书这样的小Item
class CardItem extends StatelessWidget {
  String? image;
  double? imageWidth;
  String? text;
  TextStyle? textStyle;
  CardItem({Key? key,this.image,this.text,this.textStyle,this.imageWidth}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Row(
      children: [
        Image.asset(image??"images/wechat.png",width: imageWidth??ScreenUtil().L(30),fit: BoxFit.cover),
        Text(text??"",style: textStyle??KFontConstant.myTextStyle(size: 10,color: Colors.blue))
      ],
    );
  }
}

